home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / exec / abortio.c next >
C/C++ Source or Header  |  1996-10-24  |  2KB  |  74 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: abortio.c,v 1.5 1996/10/24 15:50:40 aros Exp $
  4.     $Log: abortio.c,v $
  5.     Revision 1.5  1996/10/24 15:50:40  aros
  6.     Use the official AROS macros over the __AROS versions.
  7.  
  8.     Revision 1.4  1996/08/13 13:55:55  digulla
  9.     Replaced AROS_LA by AROS_LHA
  10.     Replaced some AROS_LH*I by AROS_LH*
  11.     Sorted and added includes
  12.  
  13.     Revision 1.3  1996/08/01 17:41:01  digulla
  14.     Added standard header for all files
  15.  
  16.     Desc:
  17.     Lang: english
  18. */
  19. #include <exec/execbase.h>
  20. #include <exec/io.h>
  21. #include <aros/libcall.h>
  22.  
  23. /*****************************************************************************
  24.  
  25.     NAME */
  26.     #include <clib/exec_protos.h>
  27.  
  28.     AROS_LH1I(LONG, AbortIO,
  29.  
  30. /*  SYNOPSIS */
  31.     AROS_LHA(struct IORequest *, iORequest, A1),
  32.  
  33. /*  LOCATION */
  34.     struct ExecBase *, SysBase, 80, Exec)
  35.  
  36. /*  FUNCTION
  37.     Calls the AbortIO vector of the appropriate device to stop an
  38.     asyncronously started io request before completion. This may
  39.     or may not be done. You still have to do a WaitIO() on the
  40.     iorequest structure.
  41.  
  42.     INPUTS
  43.     iORequest - Pointer to iorequest structure.
  44.  
  45.     RESULT
  46.     Errorcode if the abort request failed, 0 if the abort request went
  47.     well. io_Error will then be set to IOERR_ABORTED.
  48.  
  49.     NOTES
  50.  
  51.     EXAMPLE
  52.  
  53.     BUGS
  54.  
  55.     SEE ALSO
  56.     OpenDevice(), CloseDevice(), DoIO(), SendIO(), WaitIO()
  57.  
  58.     INTERNALS
  59.  
  60.     HISTORY
  61.  
  62. ******************************************************************************/
  63. {
  64.     AROS_LIBFUNC_INIT
  65.  
  66.     return AROS_LVO_CALL1(ULONG,
  67.     AROS_LCA(struct IORequest *,iORequest,A1),
  68.     struct Device *,iORequest->io_Device,6,
  69.     );
  70.  
  71.     AROS_LIBFUNC_EXIT
  72. } /* AbortIO */
  73.  
  74.